import request from '@/utils/request.js';

// export async function getMapsInfo(params) {
//     return request('/maps/'+params,{
//         method:'GET',
//     })
// }

export async function startGapTask(params) {
    return request('/maps/gap',{
        method:'POST',
        data:params
    })
}

export async function getTaskStatus(params) {
    return request(`/task/${params}`,{
        method:'GET'
    })
}

export async function startMineTask(params){
    return request('/maps/mineral',{
        method:'POST',
        data:params
    })
}

export async function downLoadMaps(params){
    return request(`/maps/downloadMaps?id=${params}`,{
        method:'GET',
    })
}
